package ltd.flyweight.liquibasehelper.module.zngk.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "sys_dict_data_extension", autoResultMap = true)
public class ZngkSysDictDataExtensionEntity {

    @TableId
    private Long id;

    private Long dictionaryValueId;

    private Integer dataType;

    private String dataKey;

    private String dataValue;

    @TableField(exist = false)
    private String dictionaryTypeId;

    @TableField(exist = false)
    private String dictionaryValue;

    public String getBizKey() {
        return "%s::%s::%s".formatted(dictionaryTypeId, dictionaryValue, dataKey);
    }
}
